package com.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import dev.langchain4j.agent.tool.P;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.time.LocalDateTime;

/**
 * 出行预约,对应实体表trip_order
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TripOrder {
    @TableId(value = "trip_id",type = IdType.AUTO)
    Long tripId;//出行预约id
    Long userId;//用户id
    String type;//出行类型，飞机票、火车票、客车
    String beginCity;//出发城市
    String endCity;//到达城市
    LocalDateTime beginTime;//出发时间
    LocalDateTime endTime;//到达时间
    LocalDateTime reserveTime;//预定时间或更新时间


}
